﻿//
//  Copyright (c) 2011 Extreme: Paweł Huryn (lead), Jakub Domański
//
//

using System;

namespace Extreme.SPFramework.Exceptions
{
    /// <summary>
    /// Business exception
    /// </summary>
    public class BusinessException : SystemException
    {
        /// <summary>
        /// Creates new business exception
        /// </summary>
        /// <param name="code">Exception code</param>
        /// <param name="message">Exception message</param>
        public BusinessException(int code, string message)
        {
            BusinessMessage = message;
        }

        /// <summary>
        /// Exception code
        /// </summary>
        public int BusinessExceptionCode
        {
            get;
            private set;
        }

        /// <summary>
        /// Business message
        /// </summary>
        public string BusinessMessage
        {
            get;
            private set;
        }
    }
}
